import http from "@/util/request";

export function getAllDictType() {
    return http({
        method: "GET",
        url: "/dict/getAllType",
    })
}

export function getDictType(val) {
    return http({
        method: "GET",
        url: "/dict/getType",
        params: val
    })
}

export function addDictType(val) {
    return http({
        method: "POST",
        url: "/dict/addType",
        data: val
    })
}

export function updateDictType(val) {
    return http({
        method: "POST",
        url: "/dict/updateType",
        data: val
    })
}

export function updateDictTypeStatus(val){
    return http({
        method:"POST",
        url:"/dict/updateTypeStatus",
        data:val
    })
}

export function getDictData(val) {
    return http({
        method: "GET",
        url: "/dict/getData",
        params: val
    })
}

export function addDictData(val) {
    return http({
        method: "POST",
        url: "/dict/addData",
        data: val
    })
}

export function updateDictData(val) {
    return http({
        method: "POST",
        url: "/dict/updateData",
        data: val
    })
}

export function updateDictDataStatus(val){
    return http({
        method:"POST",
        url:"/dict/updateDataStatus",
        data:val
    })
}
